package lab02.test07;

import com.sun.org.apache.xpath.internal.SourceTree;

public class Person {
    private String name;
    private int age;
    private String ID;

    Person(){}

    Person(String name,int age,String ID){
        this.name = name;
        this.age = age;
        this.ID = ID;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getID() {
        return ID;
    }

    @Override
    public String toString() {
        return "姓名："+this.name + "\n"+"年龄："+this.age+
                "\n"+"身份证："+this.ID+"\n";
    }
}
